package com.rc.evcharger.mapper.market;

import com.rc.evcharger.common.base.BaseMapper;

import com.rc.evcharger.model.market.MarketActivity;
import com.rc.evcharger.model.market.MarketActivityExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MarketActivityMapper extends BaseMapper<Long, MarketActivity, MarketActivityExample> {

    /**
     * 找一条满足条件最大的优惠
     * @param activityType
     * @param payAmount
     * @return
     */
    List<MarketActivity>  listMarketActivity(@Param("payAmount") BigDecimal payAmount);

    List<MarketActivity>  listMarketActivityAndTicketType(@Param("payAmount") BigDecimal payAmount);
}